package com.square.service.member.provider.fallback;

import com.baomidou.mybatisplus.extension.api.R;
import com.square.service.common.handler.ApiCode;
import com.square.service.member.provider.feign.UserFeign;
import org.springframework.stereotype.Component;

/**
 * @author : 王苏
 * @since : 2021/4/20 15:21
 */
@Component
public class UserFeignFallback implements UserFeign {

    @Override
    public R<?> getUserByUsername(String username) {
        return R.failed(ApiCode.MEMBER_SERVICE_EXCEPTION);
    }
}
